package com.jt.www.admin.order_pc.controller;

import com.jt.www.admin.order_pc.service.PromoteBusinessService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: edu-svc
 * @ClassName: PromoteBusinessController
 * @Author: lq
 * @Description: 展业端相关接口
 * @Date: 2019-11-11 14:10
 * @Version: 1.0
 */
@Api(value = "展业端相关接口", tags = {"PROMOTE-BUSINESS-API"}, description = "展业端相关接口")
@RestController
@RequestMapping(value = "/promoteBusiness/v1")
public class PromoteBusinessController {

    public static final Logger log = LoggerFactory.getLogger(PromoteBusinessController.class);

    @Autowired
    private PromoteBusinessService promoteBusinessService;

    /**
     * 展业端首页
     *
     * @param userCode
     * @return RenewalVO
     * @throws Exception
     */
    @ApiOperation(value = "展业端首页", httpMethod = "GET")
    @GetMapping(value = "/promote/index", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public ResponseEntity promoteBusinessIndex(@RequestParam(value = "userCode", required = true) String userCode) throws Exception {
        return promoteBusinessService.promoteBusinessIndex(userCode);
    }

}
